package com.co.demo;

import java.util.ArrayList;
import java.util.LinkedList;

/**
 * @version 1.0
 * @Author: 许啸林
 * @Date: 2021/6/19 15:07
 * 通过断点调试查看ArrayList 的扩容机制
 */
public class ArrayListDemo {
    public static void main(String[] args) {
        defaultGrow();
    }

    public static void defaultGrow() {
        ArrayList arrayList = new ArrayList(5);
        for(int i = 0; i < 11; i++) {
            arrayList.add(i);
        }
    }
}
